var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var Schema =mongoose.Schema;

var UserSchema=new Schema({
	name:String,
	password:String,
	date:{type:Date,default:Date.now}
})
UserSchema.plugin(mongoosePaginate);
var User= mongoose.model('User',UserSchema,'user');
module.exports =User